package com.wcm.system.model.faxuewang;

import javax.persistence.*;

/**
 * @Author：dapan
 * @Description:cadota
 * @Date:Create in 10:35 2018/7/30
 * @Modifird By:
 */
@Entity
@Table(name = "subtype", schema = "dbo", catalog = "iolaw")
public class SubtypeEntity {
    private int id;

    @Id
    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    private String title;
    private Integer tid;
    private String desp;
    private Integer isload;
    private String cclass;
    private Integer hits;
    private String cids;
    private Integer tops;


    @Basic
    @Column(name = "title", nullable = true, length = 100)
    public String getTitle() {
        return title;
    }

    public void setTitle(String title) {
        this.title = title;
    }

    @Basic
    @Column(name = "tid", nullable = true)
    public Integer getTid() {
        return tid;
    }

    public void setTid(Integer tid) {
        this.tid = tid;
    }

    @Basic
    @Column(name = "desp", nullable = true, length = 100)
    public String getDesp() {
        return desp;
    }

    public void setDesp(String desp) {
        this.desp = desp;
    }

    @Basic
    @Column(name = "isload", nullable = true)
    public Integer getIsload() {
        return isload;
    }

    public void setIsload(Integer isload) {
        this.isload = isload;
    }

    @Basic
    @Column(name = "cclass", nullable = true, length = 100)
    public String getCclass() {
        return cclass;
    }

    public void setCclass(String cclass) {
        this.cclass = cclass;
    }

    @Basic
    @Column(name = "hits", nullable = true)
    public Integer getHits() {
        return hits;
    }

    public void setHits(Integer hits) {
        this.hits = hits;
    }

    @Basic
    @Column(name = "cids", nullable = true, length = 4000)
    public String getCids() {
        return cids;
    }

    public void setCids(String cids) {
        this.cids = cids;
    }

    @Basic
    @Column(name = "tops", nullable = true)
    public Integer getTops() {
        return tops;
    }

    public void setTops(Integer tops) {
        this.tops = tops;
    }

    @Override
    public boolean equals(Object o) {
        if (this == o) return true;
        if (o == null || getClass() != o.getClass()) return false;

        SubtypeEntity that = (SubtypeEntity) o;

        if (id != that.id) return false;
        if (title != null ? !title.equals(that.title) : that.title != null) return false;
        if (tid != null ? !tid.equals(that.tid) : that.tid != null) return false;
        if (desp != null ? !desp.equals(that.desp) : that.desp != null) return false;
        if (isload != null ? !isload.equals(that.isload) : that.isload != null) return false;
        if (cclass != null ? !cclass.equals(that.cclass) : that.cclass != null) return false;
        if (hits != null ? !hits.equals(that.hits) : that.hits != null) return false;
        if (cids != null ? !cids.equals(that.cids) : that.cids != null) return false;
        if (tops != null ? !tops.equals(that.tops) : that.tops != null) return false;

        return true;
    }

    @Override
    public int hashCode() {
        int result = id;
        result = 31 * result + (title != null ? title.hashCode() : 0);
        result = 31 * result + (tid != null ? tid.hashCode() : 0);
        result = 31 * result + (desp != null ? desp.hashCode() : 0);
        result = 31 * result + (isload != null ? isload.hashCode() : 0);
        result = 31 * result + (cclass != null ? cclass.hashCode() : 0);
        result = 31 * result + (hits != null ? hits.hashCode() : 0);
        result = 31 * result + (cids != null ? cids.hashCode() : 0);
        result = 31 * result + (tops != null ? tops.hashCode() : 0);
        return result;
    }
}
